<template>
  <div class="basicInfoContainer">
    <!-- 头部 -->
    <h1>我是头</h1>

    <!-- 表格数据 -->
    <scroll-view class="tableBox" scroll-x="true" scroll-left="120">
      <v-table :columns="columns" :list="data"></v-table>
    </scroll-view>
    <!-- <single></single> -->
  </div>
</template>

<script>
import single from '@/components/example/single.vue';
export default {
  name: 'bascicInfo',
  components: { single },
  data() {
    return {
      data: [
        {
          name: 'John Brown',
          age: 18,
          address: 'New York No. 1 Lake Park',
          id: '1',
        },
      ],
      columns: [
        { title: 'ID', key: 'id' },
        {
          title: 'Name',
          key: 'name',
        },
        {
          title: 'Age',
          key: 'age',
        },
        {
          title: 'Address',
          key: 'address',
        },
      ],
    };
  },
};
</script>

<style lang="scss">
.basicInfoContainer {
  .tableBox {
    padding: 20upx 10upx;
    box-sizing: border-box;
    .table {
    }
  }
}
</style>
